#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
#define MAX 100
#define NAME_MAX 20
#define SEX_MAX 5
#define ADDR_MAX 30
#define TELE_MAX 12


typedef struct person
{
	char name[NAME_MAX];
	int  age;
	char sex[SEX_MAX];
	char address[ADDR_MAX];
	char telecom[TELE_MAX];
}person;

typedef struct contact
{
	person data[MAX];
	int number;
}contact;

void InitContact(contact* pc);
void AddContact(contact* pc);
void showContact(const contact* pc);
int Finf_by_name(contact* pc, char* name);
void deleteContact(contact* pc);
void shearchContact(const contact* pc);
void ModifyContact(contact* pc);
void swapContact(person* p1, person* p2);
void SortContact(contact* pc);
void StorageContact(contact* pc);
void LoadContact(contact* pc);